﻿using FieldTools.Client.Entity.OneBot;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace FieldTools.Client.Business.IBusiness
{
    /// <summary>
    /// OneBot协议服务端接口
    /// </summary>
    public interface IOneBotServerApiBus
    {
        /// <summary>
        /// 处理消息事件
        /// </summary>
        /// <param name="oneBotEnevtMessageInfo"></param>
        /// <returns></returns>
        Task<QuickHandleMessageInfo> HandleMessageInfoAsync(OneBotEnevtMessageInfo? oneBotEnevtMessageInfo);
        /// <summary>
        /// 处理元事件
        /// </summary>
        /// <param name="oneBotEventMetaInfo"></param>
        /// <returns></returns>
        Task<QuickHandleMetaInfo> HandleMetaInfoAsync(OneBotEventMetaInfo? oneBotEventMetaInfo);

        /// <summary>
        /// 处理通知事件
        /// </summary>
        /// <param name="oneBotEventNoticeInfo"></param>
        /// <returns></returns>
        Task<QuickeHandleNoticeInfo> HandleNoticeInfoAsync(OneBotEventNoticeInfo? oneBotEventNoticeInfo);

        /// <summary>
        /// 处理请求事件
        /// </summary>
        /// <param name="oneBotEventRequestInfo"></param>
        /// <returns></returns>
        Task<QuickeHandleRequestInfo> HandleRequestInfoAsync(OneBotEventRequestInfo? oneBotEventRequestInfo);
    }
}
